# -*- coding: utf-8 -*-

import os
cur_dir = os.path.dirname(os.path.abspath(__file__))

from geraldo import Report, ReportBand, ObjectValue
from reportlab.lib.units import cm

CARTA = (21.59*cm, 27.94*cm)


class Etiqueta(Report):
    print_if_empty = True
    page_size = CARTA
    
    class band_detail(ReportBand):
        height=2.54*cm
        width = 9.75*cm
        display_inline = True
        elements=(
#                RoundRect(width=10.16*cm, height=2.54*cm, radius=5, stroke_color=black, stroke_width=0.15*mm, top=0.25*cm),
                ObjectValue(attribute_name='nome', width=9.5*cm, left=-0.2*cm, top=0.7*cm,),
                ObjectValue(attribute_name='_endereco_lograd_num', width=9.5*cm, left=-0.2*cm, top=1.1*cm,),
                ObjectValue(attribute_name='_endereco_bairro', width=9.5*cm, left=-0.2*cm, top=1.5*cm,),
                ObjectValue(attribute_name='_endereco_cep_municipio', width=9.5*cm, left=-0.2*cm, top=1.9*cm,),
                )